<?
/*
 *   Pmail easy way to send emails
 *   Copyright (C) 2009  Felipe Theodoro Gonçalves (www.ftgoncalves.com)
 *
 *   This program is free software: you can redistribute it and/or modify
 *	 it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
?>
<div id="page">
	<p class="ind"><?= $html->link(__d('pmail', 'See groups configured', true), array('plugin' => 'pmail', 'controller' => 'groups', 'action' => 'index')); ?> > <?= __d('pmail', 'Insert members') ?></p>
	<h2><?= __d('pmail', 'Member') ?></h2>
	<form action="<?= $html->url(array('plugin' => 'pmail', 'controller' => 'groups', 'action' => 'insert_member_of_group')) ?>" method="post" enctype="application/x-www-form-urlencoded">
		<fieldset>
			<legend><?= __d('pmail', 'data of member') ?></legend>
				<p>
					<label for="groups"><?= __d('pmail', 'Groups') ?></label>
					<br/>
					<?= $form->select('pmail_groups_id', $groups, null, array('size' => 10, 'class' => 'select_big'), false) ?>
				</p>
				<p>
					<label for="members">
						<?= __d('pmail', 'Members of group') ?> (<?= __d('pmail', 'name') ?>=<?= __d('pmail', 'email') ?>;)
					</label>
					<br/>
					<?= $form->textarea('members', array('rows' => 10, 'class' => 'select_big')) ?>
				</p>
				<p>
					<?= $form->submit(__d('pmail', 'save', true), array('value' => 'Save', 'class' => 'button')) ?>
				</p>
		</fieldset>
	</form>
</div>
<div id="sidebar">
	<h4><?= __d('pmail', 'Coments') ?></h4>
	<p><?= __d('pmail', 'Insert members to a group') ?>.</p>
	<?= $this->requestAction('/pmail/groups/menu') ?>
	<?= $this->renderElement('recommended/links') ?>
</div>
<div class="clear"></div>